package com.msg.beans;

import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;


public class ForecastBean {

	public String getTicket() {
		return Ticket;
	}


	public void setTicket(String ticket) {
		Ticket = ticket;
	}


	public int getA() {
		return A;
	}


	public void setA(int a) {
		A =a;
	}
	public int getB() {
		return B;
	}


	public void setB(int b) {
		B =b;
	}
	
	public int getC() {
		return C;
	}


	public void setC(int c) {
		C =c;
	}
	public int getD() {
		return D;
	}


	public void setD(int d) {
		D =d;
	}
	public int getE() {
		return E;
	}


	public void setE(int e) {
		E =e;
	}
	public int getF() {
		return F;
	}


	public void setF(int f) {
		F =f;
	}
	public int getG() {
		return G;
	}


	public void setG(int g) {
		G =g;
	}
	public int getH() {
		return H;
	}


	public void setH(int h) {
		H =h;
	}
	public int getAmount(){
		return Amount;
	}
	public void setAmount(int amount){
		Amount=amount;
	}
	public int getTotal_Seats(){
		return Total_Seats;
	}
	public void setTotal_Seats(int total_seats){
		Total_Seats=total_seats;
	}
	public int getNo(){
		return No;
	}
	public void setNo(int no){
		No=no;
	}
   
        private int No;
	private String Ticket;
	private int Amount,Total_Seats;
	private int A,B,C,D,E,F,G,H;
	

	
	public ForecastBean(){}


	public JSONObject toJSONObject() {
		JSONObject json = new JSONObject();
		try {
			json.put("Ticket", Ticket);
			json.put("Amount", Amount);
			json.put("Total_Seats", Total_Seats);
			json.put("A", A);
			json.put("B", B);
			json.put("C", C);
			json.put("D", D);
			json.put("E", E);
			json.put("F", F);
			json.put("G", G);
			json.put("H", H);
			
			
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return json;
	}


	@Override
	public String toString() {
		return "ForecastBean [Ticket=" + Ticket + ", Amount=" + Amount
				+ ", Total_Seats=" + Total_Seats + ", A=" + A + ", B=" + B
				+ ", C=" + C + ", D=" + D + ", E=" + E + ", F=" + F + ", G="
				+ G + ", H=" + H + "]";
	}

}